package com.gzhryc.shared_device.base.enums;

public enum EOperatorType {

    System(1, "系统自动"), Manager(2, "管理员"), Agent(3, "代理"), Member(4, "会员")
    ,Merchant(5, "商户"),Staff(6, "客服"),Referrer(7, "介绍人"),Clerk(8, "店员");

    private Integer index;
    private String note;

    EOperatorType(Integer index, String note) {
        this.index = index;
        this.note = note;
    }

    public Integer index() {
        return index;
    }

    public String note() {
        return note;
    }

    public static String note(Integer index) {
        EOperatorType[] temp = EOperatorType.values();
        for (int i = 0; i < temp.length; i++) {
            EOperatorType item = temp[i];
            if (item.index.equals(index)) {
                return item.note;
            }
        }
        return null;
    }
}
